package com.sunni.service;

import com.sunni.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    List<User> selectAll();

    void add(User user, Long[] roleIds);

    void deleteByUserId(Long userId);

    /*day07-08 验证账户密码是否正确*/
    String loginCheck(User user,HttpServletRequest request);
}
